package com.chen10.cattle.mapper;

import com.chen10.cattle.model.pojo.CattlePhoto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【cattle_photo】的数据库操作Mapper
* @createDate 2025-03-16 18:06:16
* @Entity com.chen10.cattle.model.pojo.CattlePhoto
*/
@Mapper
public interface CattlePhotoMapper {
    int insert(CattlePhoto photo);
    List<CattlePhoto> selectByCattleId(Long cattleId);
    List<CattlePhoto> selectPhotosByType(@Param("cattleId") Long cattleId,
                                         @Param("photoType") String photoType);
}




